package com.ihr360.payroll.model.dto.salary.report.embedded;

import com.ihr360.commons.model.type.SalaryAdjustFormula;
import com.ihr360.payroll.model.base.salaryreport.IPayrollConfig;
import com.ihr360.shared.entitywithlistener.NumberIdWithTimeAndCompanyId;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Eric on 2018/4/17/017.
 */
public class PayrollConfigSnapshot extends NumberIdWithTimeAndCompanyId<Long> implements IPayrollConfig {

    /**
     * 名称
     */
    private String name;

    /**
     * 是否启用
     */
    private boolean enabled = true;

    private SalaryAdjustFormula salaryAdjustFormula;

    /**
     * 字段
     */
    private List<SalaryFieldSnapshot> fields = new ArrayList<>();



    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public SalaryAdjustFormula getSalaryAdjustFormula() {
        return salaryAdjustFormula;
    }

    public void setSalaryAdjustFormula(SalaryAdjustFormula salaryAdjustFormula) {
        this.salaryAdjustFormula = salaryAdjustFormula;
    }

    public List<SalaryFieldSnapshot> getFields() {
        return fields;
    }

    public void setFields(List<SalaryFieldSnapshot> fields) {
        this.fields = fields;
    }
}
